
import 'package:flutter/material.dart';
/*
 * @LogdingContent
 * @author: ZhongWb
 * @date: 2019/12/13 10:46
 * @description ModalProgressHUD 自定义-加载中菊花
 **/
Widget LogdingContent({Color cententColor,int fg=1,String text}){
  return fg==0? Material(
    color: Colors.transparent,
    child: Center(
      child: Container(
        decoration: BoxDecoration(
          color: Color(0xff333333),
          borderRadius: BorderRadius.circular(6),
        ),
        width: 120,
        height: 120,
        alignment: Alignment.center,//
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Image.asset("images/package/logding.gif",width: 34,height: 34,),
            text==null?Container():Text(text,style: TextStyle(fontSize: 16,color: text != null ?Colors.white:Color(0xffC0C4CC)),),
          ],
        ),
      ),
    ),
  ):Material(
    child: Container(
      child: Column(
        children: <Widget>[
          // 上下 1:2 展示中间图片
          Expanded(child: Container(),flex: 1,),
          Expanded(child:Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Image.asset("images/package/logding.gif",width: 34,height: 34,),
              Text(text ?? "正在加载...",style: TextStyle(fontSize: 16,color: text != null ?Colors.white:Color(0xffC0C4CC)),),
            ],
          ),),
          Expanded(child: Container(),flex: 2,),
        ],
      ),
    ),
  );
}